import http from './api'
// 当前天气
export const getNowWeatherApi = (params) => {
  return http({
    ...params,
    app: 'weather.today',
  })
}
// 生活指数
export const getLifeIndexApi = (params) => {
  return http({
    ...params,
    app: 'weather.lifeindex',
  })
}
// 一周天气
export const getaWeekWeatherApi = (params) => {
  return http({
    ...params,
    app: 'weather.future',
  })
}
// 所有的天气数据
export const getWeatherAllApi = (params) => {
  return http({
    ...params,
    app: 'weather.realtime',
    ag: 'today,futureDay,lifeIndex,futureHour',
  })
}
// 专业数据
export const getRealtimeBatchApi = (params) => {
  return http({
    ...params,
    app: 'weather.realtimeBatch',
  })
}
// pm2
export const getWeatherPm25Api = (params) => {
  return http({
    ...params,
    app: 'weather.pm25',
  })
}
// 所有城市
export const getCityAllListApi = (params) => {
  return http({
    ...params,
    areaType: 'cn',
    app: 'weather.city',
  })
}
